package com.woniu.dao;


import com.woniuxy.commons.entity.QueryConditions;
import com.woniuxy.commons.entity.ClozeBank;

import java.util.List;

/**
 * @program: bzeducation
 * @author: Xingqilin
 * @create: 2020-07-16 14:49
 * @description:完型填空题库查询
 */

public interface ClozeBankDao {

    //    通过ID查找具体选择题
    ClozeBank findClozeById(Long selectId);

    //    通过问题描述模糊查询
    List<ClozeBank> findClozeByTopic(Long subject, String topic);

    //    通过学期，分值，类别，知识点，出题时间，出题人查询问题
    List<ClozeBank> findClozeByParams(QueryConditions queryConditions);

    //    插入完型填空题目
    int insertCloze(ClozeBank clozeBank);

    //    插入完型选择
    int insertSelect(List selects);

    //    删除完型题目
    int deleteCloze(long clozeId);

    //    删除完型选项
    int deleteClozeSelect(long clozeId);

    //    修改完型题目
    int updateCloze(ClozeBank clozeBank);

    //修改完型选项
    int updateClozeSelects(List selects);

}
